<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="commons/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title>编辑个人信息</title>
<link rel="stylesheet" href="${ctx }/static/css/pintuer.css">
<link rel="stylesheet" href="${ctx }/static/css/admin.css">
<link href="http://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.css"
	rel="stylesheet">
<link href="${ctx }/static/css/city-picker.css" rel="stylesheet">
<link href="${ctx }/static/css/main.css" rel="stylesheet">
<script src="${ctx }/static/js/jquery.js"></script>
<script src="${ctx }/static/js/pintuer.js"></script>
<%-- <script type="text/javascript">
	<%if (session.getAttribute("loginMessage") == null) {%>
		alert("请登录后访问！");                        /*  验证是否存在ID，若没有表示没登录 */
	 	/* window.location.href='login'; */
	 	window.parent.location.href='${ctx }/login';
	<%}%>
	</script> --%>

</head>
<body>
	<div class="panel admin-panel">
		<div class="panel-head">
			<strong><span class="icon-pencil-square-o"></span> 编辑个人信息</strong>
		</div>
		<div class="body-content">
			<form method="post" class="form-x" action="doEditPersonal">
				<div class="form-group">
					<div class="label">
						<label>用户名账号：</label>
					</div>
					<div class="field">
						<input type="text" class="input" name="username" readonly="true"
							value="${loginMessage.username}" />${errors }
						<div class="tips"></div>
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label>姓名：</label>
					</div>
					<div class="field">
						<input type="text" class="input" name="name"
							value="${userMessage.getName()}" />
						<div class="tips"></div>
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label>性别：</label>
					</div>
					<div class="field">
						<select name="sex">
							<option value="男">男</option>
							<option value="女">女</option>
						</select>
						<!--  <input type="button" class="button bg-blue margin-left" id="image1" value="+ 浏览上传" > -->
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label>身份证号：</label>
					</div>
					<div class="field">
						<input type="text" class="input" name="idCard"
							value="${userMessage.getIdCard()}" />
					</div>
				</div>

				<!-- <div class="form-group">
        <div class="label">
          <label>网站关键字：</label>
        </div>
        <div class="field">
          <textarea class="input" name="skeywords" style="height:80px"></textarea>
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>网站描述：</label>
        </div>
        <div class="field">
          <textarea class="input" name="sdescription"></textarea>
          <div class="tips"></div>
        </div>
      </div> -->
				<div class="form-group">
					<div class="label">
						<label>生日：</label>
					</div>
					<div class="field">
						<input type="text" name="birthday"
							value="${userMessage.getBirthday() }" class="sang_Calender" />
						<div class="tips"></div>
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label>手机：</label>
					</div>
					<div class="field">
						<input type="text" class="input" name="userPhone"
							value="${userMessage.getUserPhone() }" />
						<div class="tips"></div>
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label>地址：</label>
					</div>
					<div class="field">

						<div class="container">

							<div class="docs-methods">
								<div id="distpicker">
									<div class="form-group">
										<div style="position: relative;">
											<input id="city-picker3" class="form-control"
												name="lgAddress" type="text"
												value="${userMessage.getAddress() }"
												data-toggle="city-picker">
										</div>
									</div>
									<div class="form-group">
										<button class="btn btn-warning" id="reset" type="button">重置</button>
										<button class="btn btn-danger" id="destroy" type="button">确认</button>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label>详细地址：</label>
					</div>
					<div class="field">
						<input type="text" class="input" name="smAddress"
							placeholder="乡.镇/街道" />
						<div class="tips"></div>
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label>QQ：</label>
					</div>
					<div class="field">
						<input type="text" class="input" name="QQ"
							value="${userMessage.getQQ() }" />
						<div class="tips"></div>
					</div>
				</div>
				<div class="form-group">
					<div class="label">
						<label>邮编：</label>
					</div>
					<div class="field">
						<input type="text" class="input" name="zipCode"
							value="${userMessage.getZipCode() }" />
						<div class="tips"></div>
					</div>
				</div>


				<div class="form-group">
					<div class="label">
						<label>Email：</label>
					</div>
					<div class="field">
						<input type="text" class="input" name="email"
							value="${userMessage.getEmail() }" />
						<div class="tips"></div>
					</div>
				</div>

				<div class="form-group">
					<div class="label">
						<label></label>
					</div>
					<div class="field">
						<button class="button bg-main icon-check-square-o" type="submit">确定</button>
						<a href="personal" class="cancel">取消</a>
					</div>
				</div>
			</form>
		</div>
	</div>
	<script src="${ctx }/static/js/jquery.js"></script>
	<script src="${ctx }/static/js/bootstrap.js"></script>
	<script src="${ctx }/static/js/city-picker.data.js"></script>
	<script src="${ctx }/static/js/city-picker.js"></script>
	<script src="${ctx }/static/js/main.js"></script>
	<script src="${ctx }/static/js/datetime.js"></script>
</body>
</html>